package com.lcq.gulimall.authsever.app;

import com.lcq.common.utils.R;
import com.lcq.gulimall.authsever.service.RegService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("reg")
public class RegController {
    @Autowired
    RegService regService;
    @RequestMapping("/send/auth/code")
    public R sendAuthCode(@RequestParam("phone") String phone){
        return regService.sendAuthCode(phone);
    }
}
